#define  _CRT_SECURE_NO_WARNINGS  1
#include"Sort.h"

void test1()
{
	srand((unsigned int)time(0));
	int a[10] = { 0 };
	for (int i = 0; i < 10; i++)
	{
		a[i] = rand() % 50 + 1 + i;
		printf("%d ", a[i]);
	}
	printf("\n");
	//int b[] = { 9,1,2,5,7,4,8,6,3,5,1,2,3,5,1,8,3 };

	//InsertSort(a, sizeof(a) / sizeof(a[0]));
	//ShellSort(a, sizeof(a) / sizeof(a[0]));
	//SelectSort(a, sizeof(a) / sizeof(a[0]));
	QuickSort1(a, 0, sizeof(a) / sizeof(a[0]) - 1);

	for (int i = 0; i < sizeof(a) / sizeof(a[0]); i++)
	{
		printf("%d ", a[i]);
	}
}

int main()
{
	test1();
	return 0;
}